def getNum():       
    nums = []
    iNumStr = input ("")
    nums=(eval(iNumStr))# 直接就是以逗号分隔，append是加入元素。这个是直接得到数组
    # https://blog.csdn.net/weixin_39771351/article/details/109939896?spm=1001.2101.3001.6650.1&utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7Edefault-1-109939896-blog-113313860.pc_relevant_default&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7Edefault-1-109939896-blog-113313860.pc_relevant_default&utm_relevant_index=2
    return nums
def mean(numbers):  
    s = 0.0
    for num in numbers:
        s = s + num
    return s / len(numbers)
def dev(numbers, mean): 
    sdev = 0.0
    for num in numbers:
        sdev = sdev + (num - mean)**2
    return pow(sdev / (len(numbers)-1), 0.5)
def median(numbers):   
    numbers=sorted(numbers)#返回一个数组，而不是排序数组
    size = len(numbers)
    if size % 2 == 0:
        med = (numbers[size//2-1] + numbers[size//2])/2
    else:
        med = numbers[size//2]
    return med
n =  getNum() 
m =  mean(n)
print("平均值:{:.2f},标准差:{:.2f},中位数:{}".format(m, dev(n,m),median(n)))
